﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ctlSideShedule.ascx.cs" Inherits="Ctl_ctlSideShedule" %>
 <%@ Register src="ctlFilterBar.ascx" tagname="ctlFilterBar" tagprefix="uc1" %>
 <%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
                <%--            <cc1:CalendarExtender ID="CalendarExtender1" runat="server" 
                                Enabled="True" Format="dd.MM.yyyy" TargetControlID="txtDtStart">
                            </cc1:CalendarExtender>
                            <cc1:CalendarExtender ID="CalendarExtender2" runat="server" 
                                Enabled="True" PopupPosition ="BottomRight"  Format="dd.MM.yyyy" TargetControlID="txtDtEnd">
                            </cc1:CalendarExtender>
     --%>
 
<cc1:MaskedEditExtender ID="txtDtEnd_MaskedEditExtender" runat="server"                             
                            Mask ="99/99/9999"             
                            MaskType ="Date"                                           
                            CultureDateFormat="dd.MM.yyyy"  
                            Enabled="True" 
                            TargetControlID="txtDtEnd">
                        </cc1:MaskedEditExtender>
<cc1:MaskedEditExtender ID="MaskedEditExtender1" runat="server"                             
                            Mask ="99/99/9999"             
                            MaskType ="Date"                                           
                            CultureDateFormat="dd.MM.yyyy"  
                            Enabled="True" 
                            TargetControlID="txtDtStart">
                        </cc1:MaskedEditExtender>
                        
 <table style="width :100%" class ="EditRowBackGround">
    <tr >
        <td style ="width :35%">
            <uc1:ctlFilterBar ID="ctlFilterBar1" runat="server" />        
            <asp:CheckBox ID="chOnlyFree" runat="server" Font-Bold="True" 
                Font-Size="X-Small" Text="Свободные"  ToolTip ="Стороны имеющие хотя бы одну свободную поверхность"/>
            <asp:CheckBox ID="chOnlyFull" Text ="Занятые" ToolTip ="Стороны не имеющие свободных поверхностей" runat="server" Font-Bold="True" 
                Font-Size="X-Small" />
            <asp:CheckBox ID="chOverFlow_Q" Text ="Очередь" runat="server" ToolTip ="Стороны имеющие очередь бронирования" Font-Bold="True" 
                Font-Size="X-Small"  />
            <asp:CheckBox ID="chSelected" Text ="Отобранные" runat="server" 
                ToolTip ="Только отобранные" Font-Bold="True" 
                Font-Size="X-Small"  />
        </td>        
        <td style ="text-align :right " >
            &nbsp
        </td>
        <td style ="text-align :right; width:200px;  vertical-align :top  ">
            <table style="width:200px;">
                <tr>    
                    <td >&nbsp</td>        
                    <td style ="font-weight :bold " >Детализация:</td>            
                    <td>
                        <asp:DropDownList ID="cmbPeriodType" runat="server">
                            <asp:ListItem Value="1">День</asp:ListItem>
                            <asp:ListItem Value="2">Неделя</asp:ListItem>
                            <asp:ListItem Value="3">Месяц</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td style ="width :70px">
                        <asp:TextBox ID="txtDtStart" runat="server" Width="100px"></asp:TextBox>                        
                        <cc1:CalendarExtender ID="txtDtStart_CalendarExtender" runat="server" 
                            Enabled="True" Format="dd.MM.yyyy" TargetControlID="txtDtStart" PopupButtonID ="btnDtStart">
                        </cc1:CalendarExtender>
                    </td>
                    <td style ="width :20px" >
                        
                        <asp:Image ID="btnDtStart" ImageUrl ="~/images/Calendar_scheduleHS.png" runat="server" />                        
                        
                    </td> 
                    <td style ="width :50px">
                        <asp:TextBox ID="txtDtEnd" runat="server" Width="100px"></asp:TextBox>                        
                    </td>
                    <td style ="width :20px" >
                        <asp:Image ID="btnDtEnd" ImageUrl ="~/images/Calendar_scheduleHS.png"  runat="server" />
                        
                        <cc1:CalendarExtender ID="txtDtEnd_CalendarExtender" runat="server" 
                            Enabled="True" PopupPosition ="BottomRight"  Format="dd.MM.yyyy" PopupButtonID ="btnDtEnd" TargetControlID="txtDtEnd">
                        </cc1:CalendarExtender>
                    </td>
                </tr>
                
            </table></td>
    </tr>
    </table>
 
 <table style="width:100%;" cellpadding ="0" cellspacing ="0">
     <tr>
        <td width="20px" class ="grd_td_head"  >
         &nbsp
         </td>
        <td id ="ConstrHead" runat="server" class ="grd_td_head" >                        
            Конструкция
        </td>
        <td class ="grd_td_head">
                            
        </td>
        <td width="50px" class ="grd_td_head">                       
            Цена
        </td>
        <td width="45%" class ="grd_td_head">
        <asp:Panel ID="pnlHead" runat ="server" Width ="100%">
            <%# GetHtmlHeadRow()%>    
            </asp:Panel>
        </td>
    </tr>
                     </table>    
    
 <table width ="100%" cellspacing ="0" cellpadding="2" >
    <asp:ListView ID="lvSides" runat="server" >
         <LayoutTemplate>    
            <tr ID="itemPlaceholder" runat="server">
            </tr>
        </LayoutTemplate>        
         <ItemTemplate>          
            <tr ID="Tr1" runat="server" >                            
                
                <td     class ="grd_td_item" onmouseout="GrdItemOnMouseOut(this);" onmouseover="GrdItemOnMouseOver(this);">                
                    
                    <table style="width:100%;">
                        <tr>
        <td style ="width :20px" >
              <asp:Image ID="Image4" runat="server" ImageUrl="~/images/grippy.png" /></td>
        <td width="200px">
            <table style="width:100%;">
                <tr>
                    <td width="100px" style =" font-weight :bold ">
                        <%# (string)Eval("GID")%> </td>
                        
                        <td style ="width:15px; font-weight :bold  ">
                            <%# Eval("Litera")%>
                        </td>
                        
                        <td style ="width :50px">
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/images/lamp.png" Visible='<%# Eval("Light") %>' Height="16px" />
                        <asp:Image ID="Image2" runat="server" ImageUrl="~/images/conditions.png"  Visible =<%# (bool)Eval("grdConstraction.isCondition")  %> Height="16px" />
                        </td>
                        <td>
                        &nbsp
                        </td>
                </tr>
                <tr>
                    <td colspan="5" >
                        <%# Eval("ConstractionTypeName") %>&nbsp </td>
                </tr>
            </table>
        </td>
        <td>
            <%# (string)Eval("FullAdress")%></td>
        <td style ="width :50px">
            <%# Convert.ToString(Eval("Price"))%></td>
        <td style ="width :45%">
            <div class =<%#(string)Eval("ID") %> style ="width :100%">
                <%# GetHtmlRow((string)Eval("ID"), (AgencyEntityLib.BaseEntity.SideShedule)Eval("SideShedule"))%>
            </div>
            
        </td>
    </tr>
                    </table>                
                </td>
            </tr>            
        </ItemTemplate>
</asp:ListView>
</table>



